<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
<link href="{SKIN_PATH}modal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/js/jqModal.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">

	<div class="main">
    	<div><a href="{$M[url]}">问吧首页</a>具体问题</div>
        <div class="cat">
          <h3 class="now">{if $status==5}<span class="j_1">已解决</span>{elseif $status==6}<span class="j_1">已关闭</span>{else}<span class="j_2">未解决</span>{/if}</h3>
          <div class="question">{$title}</div>
          <div class="question_attribute">
          {if !$isask && $status==3 && !$have_answer}<a href="{URL}#answerdiv"><img src="{$M[url]}images/button_answer.gif" alt="我要回答"/></a>&nbsp;{/if}
          {if $status==5} 解决时间：{date('Y-m-d H:i',$solvetime)} {elseif $status==3}离问题结束还有<span class="time">{$day}天{$hour}小时{$minute}分</span>{/if} {if $reward}悬赏：<span class="gold">{$reward}</span>{/if}</div>
          <div class="question_add" >
            <p><span id="askmessage">{$message}</span></p>
          </div>
        </div>
    
        <!--最佳答案-->
        {if $status==5}
        <div class="cat">
          <h3 class="good">最佳答案　<span>回答者： phpcms   一级  试用期 (0)     回复时间：{date('Y-m-d H:i',$answertime)}</span></h3>
          <div class="answer">
            <p>{$answer}</p>
          </div>
        </div>
        {/if}
        <!--其他答案-->
       <div class="cat">
    <h3>其他回答<span>({$answercount})</span></h3>
    <form name="voteForm" id="voteForm" action="" method="post" onSubmit="return ck_voteform();">
          {loop $infos $info}
          <div class="answer_list">
            <ul>
              <li><span id="answermessage">{$info[message]}</span></li>
              <li>
            {if $status==3 && $userid==$_userid}
            <input type="checkbox" name="check_answer[]"  value="{$info[pid]}" onclick="selnum+=checked?1:-1;ck_voteform();"/>候选
            {/if}
              </li>
              <li>回答者：{$info[username]} {$info[actor]} 回复时间：{date('Y-m-d H:i',$info[addtime])}</li>
            </ul>
          </div>
          {/loop}
        <p>
        <input type="submit" name="dosubmit" value="好了，转入投票流程" />
        <input type="hidden" name="forward" value="{$forward}" />
        <input type="button" value="返回" onclick="history.back(-1);"/> <span id="vote_msg"><font color='red'><strong>请选择至少两个备选答案.</strong></font></span></p>
    </form>
    </div>
    </div>
    
    <div class="aside">
    	<h4 class="tag_box">积分排行<span class="tag_menu_1"><a href="{$M[url]}creditlist.php?action=week" onMouseOver="showContent('0')" id="nav0">上周</a><a href="{$M[url]}creditlist.php?action=month" onMouseOver="showContent('1')" id="nav1">上月</a><a href="{$M[url]}creditlist.php?action=all" onMouseOver="showContent('2')" id="nav2" class="selected">总排行</a></span></h4>
        <div id="content0" style="display:none;">
          <ul>
          {tag_上周积分排行榜}
          </ul>
        </div>
        <div id="content1" style="display:none;">
          <ul>
          {tag_上月积分排行榜}
          </ul>
        </div>
        <div id="content2">
          <ul>
          {tag_总积分排行榜}
          </ul>
        </div>
    </div>

 
</div>

<SCRIPT LANGUAGE="JavaScript">
<!--
function showContent(id)
{
for (var i = 0;i < 3;i++)
{
var nav = document.getElementById("nav" + i);
var content = document.getElementById("content" + i);
	if (i == id)
	{
	nav.className = 'selected';
	content.style.display = "";
	}
	else
	{
	nav.className = '';        
	content.style.display = "none";
	}
}
}
var selnum = 0;
function ck_voteform()
{
	if(selnum >= 2)
	{
		$('#vote_msg').html('');
		return true;
	}
	else
	{
		$('#vote_msg').html("<font color='red'><strong>请选择至少两个备选答案.</strong></font>");
		return false;
	}
}
//-->
</SCRIPT>
{template 'footer.html'}